package com.pablosz.worm.util;

import android.content.Context;
import android.widget.Toast;

public class ToastMssg
{
	public static void show(Context ctx,String mssg, int time)
	{
		new Thread(new MssgThread(ctx, mssg,time)).start();
	}
	
	static class MssgThread implements Runnable
	{
		private Context ctx = null;
		private String mssg = null;
		private int time;
		
		public MssgThread(Context ctx, String mssg, int time)
		{
			this.ctx = ctx;
			this.mssg = mssg;
			this.time = time;
		}
		
		public void run()
		{
			Toast.makeText(ctx,mssg,time).show();
		}
	}
}
